Fuzzy Assertions ^^^^^ **Definition:** * Where lack of control for the system under test, causes us not to be able to predict the exact outcome, leading to fuzzy or partial matching in our assertions **Code Example:** .. code-block:: javascript readUser = system.retrieveUser(id) //fuzzy match assert(user).matches([ { obj.firstName == 'John' }, { obj.lastName == 'Smith' }, { obj.id instanceof UUID }, { obj.creationDate - now() < inSeconds(5) } ]) **References:** .. admonition:: Quality attributes * :octicon:`file-code;1em` - Code Example * :octicon:`comment-discussion;1em` - Cause and Effect * :octicon:`graph;1em` - Frequency * :octicon:`sync;1em` - Refactoring * `Test Smells - The Coding Craftsman `_ :octicon:`file-code;1em`